-- GENERATED SPELL FOR [Cult Researcher] --


function spell0_32297(pUnit, Event) --@Mind Blast,n/a--
pUnit:FullCastSpellOnTarget(15587,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_32297', 1500, 1)
end

function spell1_32297(pUnit, Event) --@Wail of Souls,n/a--
pUnit:FullCastSpellOnTarget(62129,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_32297', 534, 1)
end

function Sorts_32297(pUnit, Event)
local choix_sorts_32297 = math.random(0, 1)
if choix_sorts_32297 == 0 then
pUnit:RegisterEvent('spell0_32297', 1, 1)
end
if choix_sorts_32297 == 1 then
pUnit:RegisterEvent('spell1_32297', 1, 1)
end
end

function mob32297_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_32297', math.random(1500, 3000), 1)
end

function mob32297_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32297_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32297_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(32297, 1, 'mob32297_Action')
RegisterUnitEvent(32297, 2, 'mob32297_Leave')
RegisterUnitEvent(32297, 3, 'mob32297_Kill')
RegisterUnitEvent(32297, 4, 'mob32297_Die')
